package edu.zut.cs.software.perfect.grade.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.perfect.base.domain.BaseEntity;


/**
 * @ClassName courseGrade
 * @Description TODO
 * @Author zhangwenkai
 * @Date 2020年3月22日 下午5:57:01
 * @Version 1.0
 */
@Entity
@Table(name="T_STUDENTGRADE")
public class StudentGrade extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1617184056905669278L;
	
	/**
	 * studentId for StudentGrade
	 */
	@Column
	private String studentId;
	
	
	/**
	 * studentName for StudentGrade
	 */
	@Column
	private String studentName;
	
	/**
	 * courseCode for StudentGrade
	 */
	@Column
	private String courseCode;
	
	/**
	 * courseName for StudentGrade
	 */
	@Column
	private String courseName;
	
	
	/**
	 * usualSorce for StudentGrade
	 */
	@Column
	private double usualSorce;
	

	/**
	 * finalSorce for StudentGrade
	 */
	@Column
	private double finalSorce;

	
	/**
	 * totalSorce for StudentGrade
	 */
	@Column
	private double totalSorce;
	
	@ManyToOne
	@JoinColumn(name = "COURSE_GRADE_ID")
	CourseGrade courseGrade;
	

	public void setCourseGrade(CourseGrade courseGrade) {
		this.courseGrade = courseGrade;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	
	

	public String getCourseCode() {
		return courseCode;
	}

	public void setCourseCode(String courseCode) {
		this.courseCode = courseCode;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public double getUsualSorce() {
		return usualSorce;
	}

	public void setUsualSorce(double usualSorce) {
		this.usualSorce = usualSorce;
	}

	public double getFinalSorce() {
		return finalSorce;
	}

	public void setFinalSorce(double finalSorce) {
		this.finalSorce = finalSorce;
	}

	public double getTotalSorce() {
		return totalSorce;
	}

	public void setTotalSorce(double totalSorce) {
		this.totalSorce = totalSorce;
	}
	

	
}
